#include<iostream>
#include<cstdio>
using namespace std;

int main()
{
	double F;
	cin >> F;
	printf("%.5lf",5*1.0*(F-32)/9);
	
	return 0;
}
